<?php
use app\assets\HomeAsset;
HomeAsset::register($this);
use yii\helpers\Html;
?>
<?php $this->beginPage();?>
    <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Cache-Control" content="no-cache">
        <title><?php echo Html::encode($this->title);?></title>
        <meta http-equiv="keywords" content="seo优化关键字">
        <meta http-equiv="description" content="描述信息">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
        <meta http-equiv="Cache-Control" content="no-siteapp">
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <?php $this->head();?>
    </head>
    <body>
    <?php $this->beginBody();?>
    <header class="header_h">
        <div class="header_fixed">
            <div class="header_bg ">
                <div class="logo"><img src="home/index/images/logo.png"></div>    </div>
        </div>

    </header>

    <style>
        .tips{display:none;}
    </style>
    <div class="clear"></div>
    <section>
    <div class="swiper_banner">
    	<div class="swiper-container swiper-container-horizontal swiper-container-wp8-horizontal" id="imgswiper">
    		<div class="swiper-wrapper" style="transform: translate3d(-946px, 0px, 0px); transition-duration: 0ms;"><div class="swiper-slide swiper-slide-duplicate swiper-slide-next swiper-slide-duplicate-prev" data-swiper-slide-index="0" style="width: 473px;">
    			<a href="http://www.hr135.com/index.php?c=clickhits&amp;id=330"><img src="./home/index/images/test.jpg" width="100%"></a>
    			</div>
    						<div class="swiper-slide swiper-slide-duplicate-active swiper-slide-prev swiper-slide-duplicate-next" data-swiper-slide-index="0" style="width: 473px;">
    			<a href="http://www.hr135.com/index.php?c=clickhits&amp;id=330"><img src="./home/index/images/test.jpg" width="100%"></a>
    			</div>
    					<div class="swiper-slide swiper-slide-duplicate swiper-slide-active swiper-slide-duplicate-prev" data-swiper-slide-index="0" style="width: 473px;">
    			<a href="http://www.hr135.com/index.php?c=clickhits&amp;id=330"><img src="./home/index/images/test.jpg" width="100%"></a>
    			</div></div>
    	</div>
        	</div>
    </section>
    <div class="clear"></div>
    <section>

        <!--<div class="index_search_cont"> 搜索功能后期完善-->
        <!--   <form method="get" action="list.php">-->
        <!--      <input type="hidden" name="c" value="job">-->
        <!--      <div class="index_formFiled">-->
        <!--        <input type="text" value="" name="keyword" class="index_input_search" placeholder="请输入职位关键字，如：会计...">-->
        <!--        <input type="submit" value="搜职位" class="index_input_btn">-->
        <!--        <i class="index_input_btn_icon iconfont_index_search"></i>-->
        <!--      </div>-->
        <!--    </form>-->
        <!--     </div>-->

        <div class="index_nav_content">
            <div class="swiper-container swiper-container-horizontal swiper-container-wp8-horizontal" id="navswiper">
                <div class="swiper-wrapper">
                    <div class="swiper-slide swiper-slide-active" style="width: 473px;">
                        <dl class="nav_list">
                            <a href="<?php echo \yii\helpers\Url::to(['index/list','kind'=>2]);?>">
                                <dt class="cor_1"><i class="nav_icon iconfont_job "></i></dt>
                                <dd>找工作</dd>
                            </a>
                        </dl>
                        <dl class="nav_list">
                            <a href="<?php echo \yii\helpers\Url::to(['index/list','kind'=>1]);?>">
                                <dt class="cor_2"><i class="nav_icon iconfontuser "></i></dt>
                                <dd>找人才</dd>
                            </a>
                        </dl>
                        <!--              <dl class="nav_list">-->
                        <!--                  <a href="--><?php //echo \yii\helpers\Url::toRoute('');?><!--">-->
                        <!--                      <dt class="cor_8"><i class="nav_icon iconfont_news"></i></dt>-->
                        <!--                      <dd>职场资讯</dd>-->
                        <!--                  </a>-->
                        <!--              </dl>-->
                        <dl class="nav_list">
                            <a href="<?php echo \yii\helpers\Url::toRoute('index/feedback');?>">
                                <dt class="cor_yj"><i class="nav_icon iconfont_yj"></i></dt>
                                <dd>意见反馈</dd>
                            </a>
                        </dl>
                        <dl class="nav_list">
                            <a href="<?php echo \yii\helpers\Url::toRoute('index/about-us');?>">
                                <dt class="cor_sj"><i class="nav_icon iconfont_sj"></i></dt>
                                <dd>关于我们</dd>
                            </a>
                        </dl>
                    </div>
                </div>
                <!-- 如果需要分页器 -->
                <!--    <div class="swiper-pagination swiper-pagination-bullets"><span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span><span class="swiper-pagination-bullet"></span></div>-->
            </div></div>
    </section>
    <div class="clear"></div>
    <!-- <div class="index_nav_yd">
    <div class="index_nav_yd_left">
    <a href="http://www.hr135.com/wap/index.php?c=map">
    <div class="index_nav_yd_left_tit">周边工作</div>

    <div class="index_nav_yd_left_icon"></div>
    <div class="index_nav_yd_left_job">好工作，其实就在你身边</div>
    </a>
    </div>
    <div class="index_nav_yd_right">
    <div class="index_nav_yd_right_t">
     <a href="http://www.hr135.com/wap/index.php?c=tiny"><div class="index_nav_yd_right_t_name">普工专区</div>
    <div class="index_nav_yd_right_t_p">普工.技工.一线员工</div><i class="index_nav_yd_right_icon"></i>
    </a>
    </div>
    <div class="index_nav_yd_right_b">
     <a href="http://www.hr135.com/wap/index.php?c=once">
     <div class="index_nav_yd_right_bname">店铺招聘</div><div class="index_nav_yd_right_bp">钱多事少，火速入职</div><i class="index_nav_yd_right_bicon"></i>
     </a></div>
    </div>
    </div> -->
    <div class="clear"></div>


    <!--公告列表-->
    <section>
        <div class="yun_wap_notice sxl"><span class="yun_wap_notice_tit"><i class="yun_wap_notice_tit_s"></i></span>
            <ul class="yun_wap_notice_list sxlist">
                <?php foreach ($Tips as $data):?>
                    <li>
                        <a href="<?php echo $data->url;?>"><?php echo $data->title?></a></li>
                <?php endforeach;?>
            </ul>
        </div>
    </section>


    <?php
    if(empty(yii::$app->session['User']['token'])){
        ?>
        <section>
            <div class="index_warp_content mt10">
                <div class="index_login">
                    <div class="index_login_p">您尚未登录，马上登录轻松管理信息</div>
                    <div class="index_logoin_sub">
                        <a href='<?php echo \yii\helpers\Url::toRoute('login/login');?>' class="index_logoin_bth">登录</a>
                        <a href='<?php echo \yii\helpers\Url::toRoute('login/register');?>' class="index_logoin_bth index_reg_bth">注册</a>
                    </div>
                </div>
            </div>
        </section>
    <?php };?>
    <div class="clear"></div>
    <section>
        <div class="yun_companyList">
            <ul class="clearfix">
            </ul>
        </div>
    </section>
    <div class="clear"></div>


    <div class="index_wap_tit"><i class="index_wap_tit_icon"></i><span class="index_wap_tit_s">人才信息</span><a href="<?php echo \yii\helpers\Url::toRoute(['index/list','kind'=>1]);?>" class="index_wap_titmore">更多&gt;&gt;</a></div>

    <ul class="index_job_red_list">

        <?php foreach($NormalUser as $v):?>
            <li>
                <a href="<?php echo \yii\helpers\Url::to(['user/resume', 'id' => $v->id]);?>">
                    <div class="index_job_red_momey">
                        <div class="index_job_red_momey_n"><?php echo $v->nickname;?></div>
                    </div>
                    <i class="index_job_red_momey_icon"></i>
                    <div>
                        <div class="reward_hb_list">
                            <i class="reward_hb_list_line"></i>
                            <span class="reward_hb_list_P">姓名</span>
                            <div class="reward_hb_fonttd">
                                <?php echo $v->realname?>
                            </div>
                        </div>
                        <div class="reward_hb_list">
                            <i class="reward_hb_list_line"></i>
                            <div class="reward_hb_list_P">
                                性别
                            </div>
                            <span class="reward_hb_fontrz"><?php echo $v->sex?></span>
                        </div>
                        <div class="reward_hb_list">
                            <i class="reward_hb_list_line"></i>
                            <div class="reward_hb_list_P">
                                专业
                            </div>
                            <span class="reward_hb_fontms"><?php echo $v->degree?></span>
                        </div>
                        <span class="reward_hb_ls">查看简历</span>
                    </div>
                </a>
            </li>
        <?php endforeach;?>
    </ul>

    <div class="clear"></div>
    <section>
        <div class="index_wap_tit"><i class="index_wap_tit_icon"></i><span class="index_wap_tit_s">热门工作</span><a href="<?php echo \yii\helpers\Url::toRoute(['index/list','kind'=>2]);?>" class="index_wap_titmore">更多&gt;&gt;</a></div>
        <div class="index_wap_hotjob ">
            <div class="clear"></div>
            <ul class="index_hotlist">
                <?php $i=0;foreach($Job as $v):?>  <!--指定输出 16 条数据-->
                    <li> <a href="<?php echo \yii\helpers\Url::to(['user/job-resume', 'id' => $v->id]);?>"><?php echo $v->name?></a></li>
                <?php endforeach;?>
            </ul>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </section>

    <div class="clear"></div>
    <section>
        <div class="index_wap_tit"><i class="index_wap_tit_icon"></i><span class="index_wap_tit_s">企业招聘</span><a href="<?php echo \yii\helpers\Url::toRoute('index/list');?>" class="index_wap_titmore">更多&gt;&gt;</a></div>
        <div class="index_warp_jobcontent">
            <?php foreach($Enterprise as $v):;?><!-- 输出指定数量的 企业-->
            <div class="indexcom_list_box">
                <a href="<?php echo \yii\helpers\Url::to(['user/enterprise-resume','id'=>$v->id]);?>" class="">
                    <div class="indexcom_list_t_box">
                        <div class="indexcom_list_logo_box"><img src="<?php echo $v->photo;?>" onerror="if($(this).attr(&#39;load&#39;)!=&#39;1&#39;){$(this).attr(&#39;load&#39;,1);this.src=&#39;http://www.hr135.com/data/logo/20180304/15296025859.JPG&#39;;}"></div>
                        <div class="indexcom_list_box_c">
                            <h3><?php echo $v->name?></h3>
                        </div>
                        <div class="indexcom_list_box_js">
                            <span class="indexcom_list_box_js_s indexcom_list_box_js_s_hy"><i class="indexcom_list_box_js_icon indexcom_list_box_js_icon_hy"></i><?php echo $v->range?></span>
                            <span class="indexcom_list_box_js_s"><i class="indexcom_list_box_js_icon indexcom_list_box_js_icon_map"></i><?php echo $v->address?></span>
                        </div>
                    </div>
                </a>
            </div>
            <?php endforeach;?>

        </div>
    </section>

    <style>
        .swiper-container {
            width: 100%;
            height: 95px;
        }
    </style>

    <?php $this->beginBlock('index');?>
    $(function () {
    var myimgswiper = new Swiper ('#imgswiper', {
    direction: 'horizontal'
    ,autoplay:true
    ,loop: true
    });
    var mySwiper = new Swiper ('#navswiper', {
    direction: 'horizontal'
    ,pagination: {
    el: '.swiper-pagination',
    }
    });
    });
    marquee("2000",".sxl .sxlist");
    function marquee(time,id){
    $(function(){
    var _wrap=$(id);
    var _interval=time;
    var _moving;
    _wrap.hover(function(){
    clearInterval(_moving);
    },function(){
    _moving=setInterval(function(){
    var _field=_wrap.find('li:first');
    var _h=_field.height();
    _field.animate({marginTop:-_h+'px'},800,function(){
    _field.css('marginTop',0).appendTo(_wrap);
    })
    },_interval)
    }).trigger('mouseleave');
    });
    }
    <?php $this->endBlock() ?>
    <?php $this->registerJs($this->blocks['index'], \yii\web\View::POS_END); ?>
    <!----如果是微信登录，引导微信自有分享------>


    <!----如果是UC QQ浏览器，弹出分享界面------>
    <div id="nativeShare"></div>
    <?php $this->beginBlock('index1');?>

    $(function(){

    $('#shareClick').click('click', function () {

    new nativeShare('nativeShare',config);

    });
    $('#otherBrowser').click(function(){

    $(this).hide();
    });
    $('#nativeShare').click(function(evt){

    if($(evt.target).parents(".share_bgbox").length==0){

    $(this).hide();
    }

    });
    });

    <?php $this->endBlock() ?>
    <?php $this->registerJs($this->blocks['index1'], \yii\web\View::POS_END); ?>
    <!----如果是其他浏览器分享，则弹出分享指引------>



    <!--微信分享公共代码--->


    <!--分享-->

    <div id="otherBrowser" style="width:100%;height:100%; background:rgba(51,51,51,0.9); position:fixed;left:0px;top:0px ; z-index:100000001;display:none">
        <div class="yun_wap_share_tip" style="width:100%; position:absolute; z-index:100000001;top:50%; margin-top:-90px;">

            <div class="yun_wap_share_tip_p"><i class="yun_wap_share_n">1.</i>点击浏览器顶部或底部的<i class="yun_wap_share_tip_i3"></i>或<i class="yun_wap_share_tip_i4"></i></div>
            <div class="yun_wap_share_tip_p"><i class="yun_wap_share_n">2.</i>然后点击分享按钮<i class="yun_wap_share_tip_i"></i>或<i class="yun_wap_share_tip_i2"></i></div>
            <div class="yun_wap_share_tip_p"><i class="yun_wap_share_n">3.</i>分享给朋友或者朋友圈</div>
        </div>
    </div>

    <!--分享-->

    <div id="weixinBrowser" style="width:100%;height:100%; background:rgba(51,51,51,0.9); position:fixed;left:0px;top:0px ; z-index:100000001;display:block;display:none">
        <div class="yun_wap_share_tip" style="width:100%; position:absolute; z-index:100000001;">
            <i class="yun_wap_share_tip_wxicon_more"></i>
            <i class="yun_wap_share_tip_wxicon"></i>
        </div>
    </div>
    <footer>
        <div class="clear"></div>
        <div class="footer_box_bot"></div>
        <div class="footer_sum">
            <div class="bottom_sum">
                <div class="bottom_con">
                    <div class="classify ">
                        <a href="<?php echo \yii\helpers\Url::toRoute(['index/index'])?>" id="indexclick" class="fotter_nav_link">
                            <i class="footer_icon iconfont_home"></i>
                            <span class="fotter_nav_span">首页</span>
                        </a> </div>
                    <div class="classify">
                        <a href="<?php echo \yii\helpers\Url::toRoute(['index/list']).'&kind=2';?>" class="fotter_nav_link">
                            <em class="fotter_nav_link">
                                <i class="footer_icon iconfont_jobhome"></i>
                                <span class="fotter_nav_span">找工作</span>
                            </em></a>
                    </div>


                    <div class="classify footer_nav_cur">
                        <a href="javascript:void(0);" id="jobclick" class="fotter_nav_link">
                            <i class="iconfont_homemore"></i>
                            <span class="iconfont_homemore_bg"></span>   <span class="fotter_nav_span">&nbsp;</span>

                        </a>
                    </div>

                    <div class="classify">
                        <a href="<?php echo \yii\helpers\Url::toRoute(['index/list']).'&kind=1';?>" id="" class="fotter_nav_link">
                            <em class="fotter_nav_link">
                                <i class="footer_icon iconfont_userhome"></i> <span class="fotter_nav_span">找人才</span>
                            </em> </a>

                    </div>
                    <div class="classify"> <a href="<?php echo \yii\helpers\Url::toRoute('user/index');?>" id="reg_mune_box" class="fotter_nav_link"> <i class="footer_icon iconfont_myhome"></i> <span class="fotter_nav_span">我的</span> </a>

                    </div>
                </div>
            </div>
        </div>

        <div style="width:100%;height:100%; background:rgba(0,0,0,0.9); position:fixed;left:0px;right:0px;bottom:0px;top:0px ; z-index:10000;display:none" id="footerjob">
            <div class="foot_nav_close"></div>
            <div class="foot_nav_box" style="width:100%; position:absolute;">

                <ul class="foot_nav_box_list">
                    <li> <a href="<?php echo \yii\helpers\Url::to(['index/list','kind'=>2]);?>" class="foot_nav_box_a"><span class="foot_nav_box_list_icon cor_3"><i class="nav_icon iconfont_part "></i></span><div class="foot_nav_box_name">找工作</div></a> </li>
                    <li> <a href="<?php echo \yii\helpers\Url::to(['index/list','kind'=>1]);?>" class="foot_nav_box_a"><span class="foot_nav_box_list_icon cor_2"><i class="nav_icon iconfont_comp "></i></span><div class="foot_nav_box_name">找人才</div></a> </li>
                    <li> <a href="<?php echo \yii\helpers\Url::toRoute('common/boss-entry');?>" class="foot_nav_box_a"><span class="foot_nav_box_list_icon cor_7"><i class="nav_icon iconfont_tiny "></i></span><div class="foot_nav_box_name">Boss入驻</div></a> </li>
                    <li> <a href="<?php echo \yii\helpers\Url::toRoute('index/feedback');?>" class="foot_nav_box_a"><span class="foot_nav_box_list_icon cor_4"><i class="nav_icon iconfont_once "></i></span><div class="foot_nav_box_name">意见反馈</div></a> </li>
                    <li> <a href="<?php echo \yii\helpers\Url::toRoute('index/about-us');?>" class="foot_nav_box_a"><span class="foot_nav_box_list_icon cor_5"><i class="nav_icon iconfont_map "></i></span><div class="foot_nav_box_name">关于我们</div></a></li>
                </ul>
            </div>
        </div>
    </footer>
    <div class="yunwap_reg" id="reg_mune" style="display:none">
        <div class="yunwap_close"></div>
        <ul>
            <li><a href="<?php echo \yii\helpers\Url::toRoute('user/register');?>"><i class="yunwap_reg_icon yunwap_reg_icon_bg1"><em class="yunwap_reg_icon_bg1p"></em></i>个人注册</a></li>
            <li><a href="<?php echo \yii\helpers\Url::toRoute('user/login');?>"><i class="yunwap_reg_icon yunwap_reg_icon_bg2"><em class="yunwap_reg_icon_bg2p"></em></i>个人登录</a></li>
            <li><a href="<?php echo \yii\helpers\Url::toRoute('admin/login/forget');?>"><i class="yunwap_reg_icon yunwap_reg_icon_bg3"><em class="yunwap_reg_icon_bg3p"></em></i>管理员注册</a></li>
            <li><a href="<?php echo \yii\helpers\Url::toRoute('admin/login/login');?>"><i class="yunwap_reg_icon yunwap_reg_icon_bg4"><em class="yunwap_reg_icon_bg4p"></em></i>管理员登录</a></li>
        </ul>
        <div class="yunwap_login"><a href="<?php echo \yii\helpers\Url::toRoute('user/login');?>" class="">用户登录</a></div>
    </div>

    <?php $this->beginBlock('index2');?>
    var wapurl="http://www.hr135.com/wap/",weburl="http://www.hr135.com",pricename="积分",integral_pricename="积分",code_web='注册会员,前台登录,店铺招聘,职场提问',code_kind='3';
    $(document).ready(function () {
    $('#jobclick').click('click', function () {
    $('#footerjob').toggle();
    $('#footerresume').hide();
    });
    $('#footerjob').click('click', function () {
    $('#footerjob').hide();
    });
    $('#reg_mune_box').click('click', function () {
    $('#reg_mune').toggle();
    $('#footerresume').hide();
    });
    $('#reg_mune').click('click', function () {
    $('#reg_mune').hide();
    });
    $('#reg_mune_boxs').click('click', function () {
    $('#reg_mune').toggle();
    $('#footerresume').hide();
    });
    $('#reg_mune').click('click', function () {
    $('#reg_mune').hide();
    });
    });
    <?php $this->endBlock() ?>
    <?php $this->registerJs($this->blocks['index2'], \yii\web\View::POS_END); ?>
    <?php $this->beginBlock('index3');?>
    (function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
    bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
    bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(bp, s);
    })();
    <?php $this->endBlock() ?>
    <?php $this->registerJs($this->blocks['index3'], \yii\web\View::POS_END); ?>

    <?php $this->endBody();?>
    </body>
    </html>
<?php $this->endPage();?>